package com.fortune.dto.in.cPriceMgt;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * TODO c_product_wholesale_price
 * @author ran
 *
 */
public class CPriceEditDto {
    @NotBlank(message="客户ID不能为空")
    @ApiModelProperty(example="客户ID")
    private String clientId;
    @NotBlank(message="商品ID不能为空")
    @ApiModelProperty(example="商品ID")
    private String produceId;
    @NotNull(message="商品批发价不能为空")
    @ApiModelProperty(example="商品批发价")
    private BigDecimal price;

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getProduceId() {
        return produceId;
    }

    public void setProduceId(String produceId) {
        this.produceId = produceId;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "CPriceEditDto{" +
                "clientId='" + clientId + '\'' +
                ", produceId='" + produceId + '\'' +
                ", price=" + price +
                '}';
    }
}
